package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.ArticleSearchService;
import com.terren.spider.entity.biz.ArticleSearch;

@Service("articleSearchService")
public class ArticleSearchServiceImpl extends BasicServiceSupportImpl implements ArticleSearchService{
	private final String SQL_MAPPER = "articleSearchMapper.";
	@Override
	public void save(List<ArticleSearch> list) throws Exception {
		basicDao.save(SQL_MAPPER+"addArticleSearch", list);
	}
	
	@Override
	public void saveDetail(List<ArticleSearch> items) throws Exception {
		basicDao.save(SQL_MAPPER+"addArticleDetail", items);
		
	}
	
	@Override
	public List<ArticleSearch> findArticleSearchTitle(ArticleSearch param) throws Exception {
		
		return basicDao.findForList(SQL_MAPPER+"findArticleSearchTitle", param);
	}



	@Override
	public void saveTitleInfo(List<ArticleSearch> items) throws Exception {
		
		basicDao.save(SQL_MAPPER+"addArticleSearchTitle", items);
	}



	
	
}
